import request from "@/utils/request";
import type {AccountFormResult, AccountFilterResult, StaffFilterResult} from "@/types/merchant/capitalfund/dashboard.d";
// 获取资金总览数据
export const getShopAccount = () => {
    return request<AccountFormResult>({
        url: "merchant/shop_account/index",
        method: "get"
    });
}

// 获取资产总览列表
export const getShopAccountList = () => {
    return request<AccountFilterResult>({
        url: "merchant/shop_account/log_list",
        method: "get"
    });
}

// 获取店铺协议
export const getShopAgreement = () => {
    return request<AccountFilterResult>({
        url: "merchant/shop_account/apply_shop_agreement",
        method: "get"
    });
}

// 获取员工信息展示
export const getStaffShow = () => {
    return request<StaffFilterResult>({
        url: "merchant/shop/staff_show",
        method: "get"
    });
}